<?php 
    include_once('./public/header.php');
    
?>
<ul>
    <li class="active"><a href="/home/index.php"><span>Home Page</span></a></li>
    <li><a href="/home/login/register.php"><span>Register</span></a></li>
    <li><a href="/home/login/login.php"><span>LogIn</span></a></li>
    <li><a href="/home/login/updatepwd.php"><span>Update Pwd</span></a></li>
    <li><a href="/home/login/logoff.php"><span>LogOff</span></a></li>
<?php
    if(!empty($_SESSION)){
        echo '<li><a href=""><span>welcome: '.$_SESSION['uname'].'</span></a></li>';
    }
?>
</ul>
<?php include_once('./public/middle.php');?>
<div class="content">
<div class="content_resize">
<div class="mainbar">
    <div class="article">
        <h2><span>Publish an</span> Article</h2>
        <div class="clr"></div>
        <form action="/home/doaddarticle.php" method="post" id="leavereply" enctype="multipart/form-data">
            <ol>
                <li>
                    <label for="title">Title (required)</label>
                    <input name="title" class="text" />
                </li>
                <li>
                    <label for="file">Pictrue (required)</label>
                    <input type="file" name="pic"/>
                </li>
                <li>
                    <label for="content">Content (required)</label>
                    <textarea name="content" rows="8" cols="50"></textarea>
                </li>
                <li>
                    <input type="submit" value="submit">
                    <div class="clr"></div>
                </li>
            </ol>
        </form>
    </div>
</div>
<?php include_once('./public/footer.php');?>